===============================================================================================================================

1.      upload      .

===============================================================================================================================

2.  install.php

===============================================================================================================================

3.  \engine\modules\profile.php   :

$tpl->set( '{lastdate}', langdate( "j F Y H:i", $row['lastdate'] ) );

 :

include_once ENGINE_DIR.'/modules/awards/show.awards.php';

===============================================================================================================================

4.  \engine\ajax\profile.php   :

$tpl->set( '{rate}', userrating( $row['name'] ) );

 :

include_once ENGINE_DIR.'/modules/awards/show.awards.php';

===============================================================================================================================
5.  \engine\classes\comments.class.php   :

function build_comments( $template, $area ) {
		global $config, $tpl, $is_logged, $member_id, $user_group, $lang, $dle_login_hash, $_TIME, $allow_comments_ajax;

---  :

function build_comments( $template, $area ) {
	global $config, $tpl, $db , $is_logged, $member_id, $user_group, $lang, $dle_login_hash, $_TIME, $allow_comments_ajax; $awards = get_vars('awards');

	if (!$awards) {
	$award = $db->query("SELECT id,name,img FROM ".PREFIX."_awards_list");
	while ($aw = $db->get_row($award)) {
	$awards[$aw['id']] = array ();
	foreach ($aw as $key => $value)
	{
	$awards[$aw['id']][$key] = $value;
	}
	}
	set_vars ("awards", $awards);
	}

:

if( $row['foto'] ) $tpl->set( '{foto}', $config['http_home_url'] . "uploads/fotos/" . $row['foto'] );

 :

/* ==   == */
	if (!$row['awards']) {
	$aws = '  :(';
	} else {
	$aws = '';
	$ex_aw = explode(',',$row['awards']);
	 foreach ($ex_aw as $value) {
	   $aws .= "<a href=\"#\" onMouseOver=\"toolTip(': ".$awards[$value]['name'] ." ', 250)\" onMouseOut=\"toolTip()\"><img border=\"0\" src=\"/uploads/medals/".basename($awards[$value]['img'])."\"></a>" ;
	 }
	}
	$tpl->set('{awards}', $aws);
	/* ==   == */
 if ($member_id['user_group']==1) {
  $tpl->set('{awards-link}', "<a href=".$config['http_home_url'].$config['admin_path']."?mod=awards&action=graduate&user=".$row['name']."></a>");
}else{
  $tpl->set('{awards-link}', "");
  }
/* ==   == */

===============================================================================================================================

6.  \engine\modules\lastcomments.php   :

$comments->query = "SELECT " . PREFIX . "_comments.id, post_id, " . PREFIX . "_comments.user_id, " . PREFIX . "_comments.date, " . PREFIX . "_comments.autor as gast_name, " . PREFIX . "_comments.email as gast_email, text, ip, is_register, name, " . USERPREFIX . "_users.email, news_num, " . USERPREFIX . "_users.comm_num, user_group, reg_date, signature, foto, fullname, land, icq, " . USERPREFIX . "_users.xfields, " . PREFIX . "_post.title, " . PREFIX . "_post.date as newsdate, " . PREFIX . "_post.alt_name, " . PREFIX . "_post.category, " . PREFIX . "_post.flag FROM " . PREFIX . "_comments LEFT JOIN " . PREFIX . "_post ON " . PREFIX . "_comments.post_id=" . PREFIX . "_post.id LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id " . $where . " ORDER BY id desc";

 :

$comments->query = "SELECT " . PREFIX . "_comments.id, post_id, " . PREFIX . "_comments.user_id, " . PREFIX . "_comments.date, " . PREFIX . "_comments.autor as gast_name, " . PREFIX . "_comments.email as gast_email, text, ip, is_register,group_concat(mid) as `awards`, name, " . USERPREFIX . "_users.email, news_num, " . USERPREFIX . "_users.comm_num, user_group, reg_date, signature, foto, fullname, land, icq, " . USERPREFIX . "_users.xfields, " . PREFIX . "_post.title, " . PREFIX . "_post.date as newsdate, " . PREFIX . "_post.alt_name, " . PREFIX . "_post.category, " . PREFIX . "_post.flag FROM " . PREFIX . "_comments LEFT JOIN ".PREFIX."_awards ON uid = " . PREFIX . "_comments.user_id LEFT JOIN " . PREFIX . "_post ON " . PREFIX . "_comments.post_id=" . PREFIX . "_post.id LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id " . $where . " GROUP BY id ORDER BY id desc ";

===============================================================================================================================

7.  /engine/modules/show.full.php   :

$comments->query = "SELECT " . PREFIX . "_comments.id, post_id, " . PREFIX . "_comments.user_id, date, autor as gast_name, " . PREFIX . "_comments.email as gast_email, text, ip, is_register, name, " . USERPREFIX . "_users.email, news_num, comm_num, user_group, reg_date, signature, foto, fullname, land, icq, xfields FROM " . PREFIX . "_comments LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id WHERE " . PREFIX . "_comments.post_id = '$news_id'" . $where_approve . " ORDER BY date " . $config['comm_msort'];

 :

$comments->query = "SELECT c.id,c.post_id,c.user_id,c.date,c.autor as gast_name,c.email as gast_email,c.text,c.text,c.ip,c.is_register,name,u.email,news_num,comm_num,user_group,reg_date,signature,foto,fullname,land,icq,xfields,group_concat(mid) as `awards`,u.name  FROM ".PREFIX."_comments c LEFT JOIN ".PREFIX."_awards ON c.user_id = uid  LEFT JOIN ".PREFIX."_users u ON u.user_id = c.user_id WHERE c.post_id = '$news_id' GROUP BY id ORDER BY date " . $config['comm_msort'];

===============================================================================================================================

8.  \index.php   :

$tpl->set ( '{topnews}', $topnews );

 :

$tpl->set ( '{topawards}',$topawards);
$tpl->set ( '{toppoints}',$toppoints);

===============================================================================================================================

9.  \templates\Default\main.tpl    </head> :

<script type="text/javascript" src="/engine/modules/awards/tooltip.js"></script>
===============================================================================================================================

10.  \engine\modules\cron.php      :

	clear_cache();

}
?>

 :

include ENGINE_DIR.'/modules/awards/awards_cron.php';

===============================================================================================================================

11.  \engine\init.php         :

?>

 :

include_once ENGINE_DIR.'/modules/awards/topawards.php';

===============================================================================================================================

12.    comments.tpl   :

: {registration}

 :

: {awards} {awards-link}

===============================================================================================================================

13.    userinfo.tpl   :

: {rate}

 :

: {awards} {awards-link}

===============================================================================================================================

14.    uprofile_popup   :

: {awards} {awards-link}

===============================================================================================================================

15.  main.tpl      :

{topawards} -   
{toppoints} -   

===============================================================================================================================

16.     ,      !!!!!

===============================================================================================================================

E-BOYZ (E-BOYZ.RU) P.S.     ICQ: 367612955, ,  .